﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ExtBusiness;
using ExtBusiness.Admin;
using ExtBusiness.Inspect;

public partial class Xnjc_Tsgl_Ajxx : PageBase
{
    public static string strUserNo;//= Request["UserNo"];//组织机构代码	
    public static string strUserName;// = Request["UserName"];//单位名称	
    public static string msg;
    public String mpage;
    public int pagesize = 15;
    public int pagenow = 1;
    public System.Data.DataTable dtOut;
    public System.Collections.Generic.List<System.Data.DataRow> listwork;
    public int pagecount;
    public int mypagecout = 0;


    protected void Page_Load(object sender, EventArgs e)
    {

        strUserNo = Request["UserNo"];//组织机构代码	
        strUserName = Request["UserName"];//单位名称	


        mpage = Request["PageNo"];

        if (!string.IsNullOrEmpty(mpage))
        {
            pagenow = Int32.Parse(mpage); ;
            if (pagenow < 1)
                pagenow = 1;
        }


        //判断当前登录用户是否为系统管理员
        bool ISsystemUser = SystemManager.IsSystemUser(UserId);
        Xnjc xnjc = new Xnjc();
        dtOut = xnjc.Ajxx_list(strUserNo, strUserName, UserId, ISsystemUser);
        ExtBusiness.Controls.Pager mypage = new ExtBusiness.Controls.Pager(dtOut, pagenow, pagesize);
        listwork = mypage.CurrentPageList;

        pagecount = mypage.PageCount;
        mypagecout = mypage.RecordCount;
    }
}